﻿/*
 * Copyright (c) 2013..., Sergei Grichine   http://trackroamer.com
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at 
 *    http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *    
 * this is a no-warranty no-liability permissive license - you do not have to publish your changes,
 * although doing so, donating and contributing is always appreciated
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TrackRoamer.Robotics.LibBehavior
{
    public class TrajectoryPoint
    {
        public DateTime timestamp = DateTime.Now;

        public double X;    // mm
        public double Y;
        public double Z;

        public double panAngle;         // degrees
        public double tiltAngle;

        public double Xspeed;           // mm/s
        public double Yspeed;
        public double Zspeed;

        public double panAngleRate;     // degrees per second
        public double tiltAngleRate;

        public bool tooOld { get { return (DateTime.Now - timestamp).TotalSeconds > 1.0d; } }
    }
}
